//
//  MAPolyline+HMSportTrack.m
//  HMSport
//
//  Created by apple on 2017/4/21.
//  Copyright © 2017年 itheima. All rights reserved.
//

#import "MAPolyline+HMSportTrack.h"
#import <objc/runtime.h>

@implementation MAPolyline (HMSportTrack)

- (void)setSpeed:(CGFloat)speed{

    //关联对象
    objc_setAssociatedObject(self, @"speed", @(speed), OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}

- (CGFloat)speed{

    return [objc_getAssociatedObject(self, @"speed") floatValue];
}

@end
